package com.xdf.ecommerce.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author chanchaw
 * @create 2025-11-11 15:55
 */
@Table("t_ecommerce_order")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class EcommerceOrder implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id(keyType = KeyType.Auto)
    private Long id;
    private Long userId;
    private Long addressId;
    private String orderDetail;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    public EcommerceOrder(Long userId,Long addressId,String orderDetail){
        this.userId = userId;
        this.addressId = addressId;
        this.orderDetail = orderDetail;
    }
}
